import login from './login.vue'
import register from './register.vue'
import reginfo from './reginfo.vue'
import regadv from './regadv.vue'
import VueRouter from 'vue-router'

var router = new VueRouter({
    routes:[
        {
            path:'/register',
            component:register,
            children:[
                {
                    path:'reginfo',
                    component:reginfo,
                },
                {
                    path:'regadv',
                    component:regadv,
                },
            ]
        },
        {
            path:'/login',
            component:login
        },
        {
            path:'/',
            redirect:'/login'
        }
    ]
})

export default router